//
//  PushUpViewController.h
//  Community
//
//  Created by Hobo.Chen on 6/27/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "PushViewController.h"

@protocol PushupViewControllerDelegate;

@interface PushUpViewController : PushViewController {
	UIView *bgView;
	UIView *contentView;
}

@property (assign) id<PushupViewControllerDelegate> delegate; 

@property (nonatomic, retain) IBOutlet UIView *bgView;
@property (nonatomic, retain) IBOutlet UIView *contentView;

- (void)eventBefortBack;
- (IBAction)backHome:(id)sender;
@end



//Delegate
@protocol PushupViewControllerDelegate <NSObject>
@optional 

// 绑定第三方
-(void)loadThirdPartView;

-(void)loadLoginView;

- (void)userLoginSuccess;

- (void)showMenuView;
-(void)showAllMenu;
-(void)showCamera;
- (void)showRecordMenu;
- (void)hideRecordMenu;

- (void)toProfileView:(id)sender;

- (void)toFriendsView:(id)sender;

- (void)toTLTrendsView:(id)sender;

- (void)toTLRecommendView:(id)sender;

- (void)toCHRecommendView:(id)sender;
- (void)toCHListView:(id)sender;

//Menu & Content Delegate
- (void)toTimelineView:(id)sender;
- (void)toChannelView:(id)sender;

-(void)toMyShoucang:(id)sender;
-(void)toBmiRecordView:(id)sender;
-(void)toWritingRecordView:(id)sender;
-(void)toFoodRecordView:(id)sender;
-(void)toPhotoView:(UIImage *)image;
- (void)toPhotosUpload:(id)sender;
-(void)toBianbianView:(id)sender;
-(void)toFamilyView:(id)sender;
-(void)toMyLetterView:(id)sender;
-(void)toSettingView:(id)sender;
-(void)toUserSettingView:(id)sender;
-(void)toTimelineSettingView:(NSDictionary *)timelineDict;
-(NSString *)getMessageCount;

-(void)toMyMessageView:(int)messageCount;
-(void)toModifyKeyView;
-(void)logoutAction;

- (void)loadRegistView;
-(void)toMyAttentionView;
-(void)toHaveAttentionView;
-(void)toTimelineListModifyView:(id)sender;

//日志详情
-(void)toDiaryContentView:(int)did;


- (void)toTLTrendDetailView:(NSString *)uid array:(NSMutableArray *)array row:(int)row type:(NSString *)type;

//个人主页
-(void)toUserView:(id)sender;

-(void)toShareToDoView;

- (void)toBabyTimelineView:(id)sender;

-(void)toTimelineSettingView:(NSDictionary *)timelineDict;

-(void)setMenuControllerTapEnabel:(BOOL)tap;


//保存离线上传数据
-(void)saveRecordData:(NSString *)theBodyString;

//发布记录
-(void)sendRecordData:(NSString *)theBodyString;

@end
